package com.itheima.netty.aio.test;

public class TimeServer {
	
	public static void main(String[] args) {
		
		int port = 8080;
		
		if (args != null && args.length >0) {	
			try{
				port = Integer.valueOf(args[0]);		
			}catch(NumberFormatException e){
				
			}
			AsycTimeServerHandle timeServer = new AsycTimeServerHandle(port);
			new Thread(timeServer, "AIO-AsycTimeServerHandle-001").start();
			
		}
	}

}
